//系统logo等图片信息
import { defineStore } from "pinia";
import { getSystemInfo } from "@/api/systemcofig";
import { ref } from "vue";
export const useSysteminfo = defineStore("sysInfo", () => {
  const sysLogo = ref();
  const sysVersion = ref();
  const sysLeft = ref();
  const sysName = ref();

  const getsysInfo = async () => {
    const res = await getSystemInfo();
    sysLogo.value = res.result.sysLogo;
    sysVersion.value = res.result.sysVersion;
    sysLeft.value = res.result.sysImg;
    sysName.value = res.result.sysName;
  };
  //设置信息

  return {
    sysLogo,
    sysVersion,
    sysName,
    sysLeft,
    getsysInfo
  };
});
